package com.ysstech.valuation.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDate;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author lishuangliang
 * @since 2022-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("val_bond_deal_detailed")
public class BondDealDetailed extends Model<BondDealDetailed> {

    private static final long serialVersionUID = 1L;

    @TableField("ID")
    private String id;
    /**
     * 业务日期
     */
    @TableField("FDATE")
    private LocalDate fdate;
    /**
     * 债券代码
     */
    @TableField("BONDCODE")
    private String bondcode;
    /**
     * 市场
     */
    @TableField("MARKET")
    private String market;
    /**
     * 股东代码
     */
    @TableField("SHAREHOLDER_CODE")
    private String shareholderCode;
    /**
     * 交易席位
     */
    @TableField("DEAL_SEAT")
    private String dealSeat;
    /**
     * 业务类别
     */
    @TableField("BUSINESS_TYPE")
    private String businessType;
    /**
     * 成交数量
     */
    @TableField("DEAL_AMOUNT")
    private BigDecimal dealAmount;
    /**
     * 成交价格
     */
    @TableField("DEAL_PRICE")
    private BigDecimal dealPrice;
    /**
     * 成交金额
     */
    @TableField("DEAL_MONEY")
    private BigDecimal dealMoney;
    /**
     * 印花税
     */
    @TableField("STAMP_FEE")
    private BigDecimal stampFee;
    /**
     * 经手费
     */
    @TableField("HANDLING_FEE")
    private BigDecimal handlingFee;
    /**
     * 过户费
     */
    @TableField("TRANSFER_FEE")
    private BigDecimal transferFee;
    /**
     * 证管费
     */
    @TableField("SECURITIES_MANAGEMENT_FEE")
    private BigDecimal securitiesManagementFee;
    /**
     * 佣金
     */
    @TableField("COMMISSION_FEE")
    private BigDecimal commissionFee;
    /**
     * 风险金
     */
    @TableField("RISK_FEE")
    private BigDecimal riskFee;
    /**
     * 其它费用
     */
    @TableField("OTHER_FEE")
    private BigDecimal otherFee;

    /**
     * 交易币种
     */
    @TableField("CURRENCY")
    private String currency;

    /**
     * 金融工具分类
     */
    @TableField("INVESTMENT")
    private String investment;
    /**
     * 业务标志
     */
    @TableField("BUSINESS_SIGN")
    private String businessSign;
    /**
     * 申请编号
     */
    @TableField("APPLICATION_NUMBER")
    private String applicationNumber;
    /**
     * 交易方式
     */
    @TableField("DEAL_TYPE")
    private String dealType;
    /**
     * 读入日期
     */
    @TableField("READ_IN_DATE")
    private String readInDate;
    /**
     * 原始代码
     */
    @TableField("FIRSTHAND_SECURITY_CODE")
    private String firsthandSecurityCode;
    /**
     * 指令号
     */
    @TableField("INSTRUCTION_NUMBER")
    private String instructionNumber;
    /**
     * 券商过户费
     */
    @TableField("BROKER_TRANSFER_FEE")
    private BigDecimal brokerTransferFee;
    /**
     * 成交编号
     */
    @TableField("TRANSACTION_NUMBER")
    private BigDecimal transactionNumber;
    /**
     * 基金编码
     */
    @TableField("ACCOUNT_ID")
    private String accountId;
    /**
     * 上市流通情况
     */
    @TableField("LISTINGANDCIRCULATION")
    private String listingandcirculation;
    /**
     * 债券类型
     */
    @TableField("BONDTYPE")
    private String bondtype;
    /**
     * 结算机构
     */
    @TableField("SETTLEMENTMECHANISM")
    private String settlementmechanism;

    /**
     * 实际收益率
     */
    @TableField("REALINCOME")
    private BigDecimal realIncome;

    /**
     * 债券利息
     */
    @TableField("INTEREST")
    private BigDecimal interest;

    /**
     * 溢折价
     */
    @TableField("EXCESSDISCOUNT")
    private BigDecimal excessDiscount;
    /**
     * 状态
     */
    @TableField("STATUS")
    private Integer status;

    /**
     * 添加时间
     */
    @TableField("ADD_TIME")
    private LocalDateTime addTime;

    /**
     * 添加用户
     */
    @TableField("ADD_USER")
    private String addUser;

    /**
     * 修改时间
     */
    @TableField("EDIT_TIME")
    private LocalDateTime editTime;

    /**
     * 修改用户
     */
    @TableField("EDIT_USER")
    private String editUser;
    /**
     * 删除原因
     */
    @TableField("DELETE_REASON")
    private String deleteReason;

    @Override
    protected Serializable pkVal() {
        return null;
    }

}
